package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@Table(name = "mall_product_plan_item")
public class MallProductPlanItem {
    @Id
    @Column(name = "plan_item_id")
    private Integer planItemId;

    /**
     * 计划编号
     */
    @Column(name = "plan_no")
    private Long planNo;

    @Column(name = "product_id")
    private Integer productId;

    @Column(name = "residual_quantity")
    private BigDecimal residualQuantity;


    private String grade;

    private BigDecimal amount;


    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    /**
     * @return plan_item_id
     */
    public Integer getPlanItemId() {
        return planItemId;
    }

    /**
     * @param planItemId
     */
    public void setPlanItemId(Integer planItemId) {
        this.planItemId = planItemId;
    }

    /**
     * 获取计划编号
     *
     * @return plan_no - 计划编号
     */
    public Long getPlanNo() {
        return planNo;
    }

    /**
     * 设置计划编号
     *
     * @param planNo 计划编号
     */
    public void setPlanNo(Long planNo) {
        this.planNo = planNo;
    }

    /**
     * @return product_id
     */
    public Integer getProductId() {
        return productId;
    }

    /**
     * @param productId
     */
    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public BigDecimal getResidualQuantity() {
        return residualQuantity;
    }

    public void setResidualQuantity(BigDecimal residualQuantity) {
        this.residualQuantity = residualQuantity;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
}